﻿#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
//方法一:
/*int main()
{
	int a, b;
	scanf("%d%d", &a, &b);
	int k =a>b?a:b;
	while (1)
	{
		if (k % a == 0 && k % b == 0)
		{
			break;
		}
		k++;
	}
	printf("%d", k);
	return 0;
}*/
//方法二:
int main()
{
	int a, b;
	scanf("%d%d", &a, &b);
	int k = 0;
	int mul = a * b;
	while (k = a % b)
	{
		if (b == 0)
			break;
		a = b;
		b = k;
	}
	printf("%d", mul/b);
	return 0;
}